export const BackList = {
  methods: {
    handleBack() {
      let curLibrary = JSON.parse(this.getSession('curLibrary'))
      let { type } = curLibrary
      if (type == 1) {
        this.$router.push({ name: 'course-library' })
      } else if (type == 2) {
        this.$router.push({ name: 'specialty-library' })
      } else if (type == 3) {
        this.$router.push({ name: 'arms-library' })
      } else if (type == 4) {
        this.$router.push({ name: 'topic-library' })
      } else if (type == 5) {
        this.$router.push({ name: 'micro-video' })
      } else if (type == 6) {
        this.$router.push({ name: 'training-library' })
      }
    },
  },
}
